<?php
class SiteController extends AppController {
	var $name='Site';
	var $uses = array('User');
	var $components = array('Session');

	function beforeFilter(){
		$this->Auth->allow('about');
		parent::beforeFilter();
	}
	function index(){
		if($this->Session->check('Auth.User')){
			$this->redirect(array('controller'=>'users','action' => 'home'));
		}
		$questions = $this->Question->find('all',array('order'=>'Question.id DESC', 'LIMIT'=>'5'));
		$events = $this->Event->find('all',array('order'=>'Event.id DESC', 'LIMIT'=>5));
		$words = $this->Word->find('all', array('order'=>'Word.id DESC', 'LIMIT'=>10));
		
	}
	function about(){
		
	}
}


?>